import request from '@/utils/request'

// 修改用户信息
export function updateUser(data) {
    return request({
        url: '/userlocation/user',
        method: 'put',
        data: data
    })
}
// 新增用户信息
export function addUser(data) {
    return request({
        url: '/userlocation/user',
        method: 'post',
        data: data
    })
}
// 获取用户信息详情
export function detailUser(id) {
    return request({
        url: '/userlocation/user/' + id,
        method: 'get',
    })
}
//   删除用户信息
export function delUser(id) {
    return request({
        url: '/userlocation/user/' + id,
        method: 'delete'
    })
}
//   导出用户信息
export function exportUser(data) {
    return request({
        url: '/userlocation/user/export',
        method: 'post',
        data: data
    })
}
//   查询用户信息列表
export function listUser(query) {
    return request({
        url: '/userlocation/user/list',
        method: 'get',
        params: query
    })
}